{template "header.html"}
<link rel="stylesheet" href="{THEME_PATH}admin/css/bootstrap.css" />
<style type="text/css">
html { _overflow-y:scroll;}
tr { height:23px;}
.td { height:20px;overflow:hidden}
.box {
    margin:0 10px;
}
.box .box-title {
    border-bottom: 1px solid #DDDDDD;
    padding: 7px 0 7px 10px;
}
.box .box-title h3 {
    color: #797979;
    float: left;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    margin: 3px 0;
}
.box .content {
    background: none repeat scroll 0 0 #FFFFFF;
    padding: 20px;
}
.box .box-title h3 i {
	font-size:18px;
	margin-right:10px;
}
.mleft {
	width:120px;
	text-align:right;
}

</style>
<link rel="stylesheet" href="{THEME_PATH}admin/css/font-awesome/css/font-awesome.css" />
<div id="main_frameid" class="pad-10" style="_margin-right:-12px;_width:98.9%;">
	<script type="text/javascript">
    $(function(){
        $.getScript("http://www.dayrui.com/index.php?c=sys&m=news&fc={DR_LICENSE_ID}");
        $.getScript("http://www.dayrui.com/index.php?c=sys&m=license&fc={DR_LICENSE_ID}&domain={SITE_URL}&admin={SELF}&version={DR_VERSION_ID}&new=1");
        $.getScript("{dr_url('home/mtotal')}");
        if (screen.width <= 900) $('#screenAlert').show();
		{if $member.adminid == 1}
		$.getScript("http://www.dayrui.com/index.php?c=sys&m=store&fc={DR_LICENSE_ID}&data={$store}&admin={SELF}");
		{/if}
    });
    </script>

    {if $ip}
    <div class="explain-col" style="margin-bottom:10px;"><font color="#FF0000">{$ip}</font></div>
    {/if}

    {if !is_file(FCPATH.'dayrui/license.php')}
    <div class="explain-col" style="margin-bottom:10px;"><a style="color:red" target="_blank" href="http://www.dayrui.com/index.php?c=yz&domain={SITE_URL}">此软件尚未授权，部分功能将无法正常使用，立即验证软件授权...</a></div>
    {/if}

    

    <div style="float:left;width:49%">

        <div class="box">
            <div class="box-title">
                <h3><i class="icon-bar-chart"></i>{fc_lang('数据统计')}</h3>
                <div class="clear"></div>
            </div>
            <div class="content" style="padding-left:3px;padding-right:3px">
                <table class="table table-hover table-nomargin table-bordered">
                    <thead>
                    <tr>
                        <th style="text-align:center">{fc_lang('模块名称')}</th>
                        <th style="text-align:center">{fc_lang('总数据')}</th>
                        <th style="text-align:center">{fc_lang('今日新增')}</th>
                        <th style="text-align:center">{fc_lang('审核')}</th>
                        <th style="text-align:center">{fc_lang('扩展审核')}</th>
                        <th style="text-align:center">{fc_lang('操作')}</th>
                    </tr>
                    </thead>
                    <tbody>
                    {loop $mtotal $dir $t}
                    <tr>
                        <td style="text-align:center">{$t.name}</td>
                        <td style="text-align:center"><a class="drlabel drlabel-success" href="{$t.content}" id="{$dir}_content"><img src="{THEME_PATH}admin/images/mloading.gif"></a></td>
                        <td style="text-align:center"><a class="drlabel drlabel-success" href="{$t.today}" id="{$dir}_today"><img src="{THEME_PATH}admin/images/mloading.gif"></a></td>
                        <td style="text-align:center"><a class="drlabel drlabel-important" href="{$t.content_verify}" id="{$dir}_content_verify"><img src="{THEME_PATH}admin/images/mloading.gif"></a></td>
                        <td style="text-align:center"><a class="drlabel drlabel-important" href="{$t.extend_verify}" id="{$dir}_extend_verify"><img src="{THEME_PATH}admin/images/mloading.gif"></a></td>
                        <td style="text-align:center">
                            {if $dir!='member'}
                            {if $ci->is_auth($dir.'/admin/home/add')}
                            <a href="{$t.add}" class="btn btn-mini">{fc_lang('发布')}</a>
                            {/if}
                            <a href="{$t.url}" class="btn btn-mini" target="_blank">{fc_lang('访问')}</a>
                            {/if}
                        </td>
                    </tr>
                    {/loop}
                    </tbody>
                </table>

            </div>
        </div>
        {if !SYS_NEWS}
        </div>
        <div style="float:right;width:50%">
        {/if}
        <div class="box">
            <div class="box-title">
                <h3><i class="icon-globe"></i>{fc_lang('网站信息')}</h3>
                <div class="clear"></div>
            </div>
            <div class="content">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="mleft" align="right">{fc_lang('程序内核')}：</td>
                        <td>&nbsp;<a href="{SITE_URL}" target="_blank">{DR_NAME}</a>&nbsp;v{DR_VERSION}&nbsp; <span id="finecms_version"></span></td>
                    </tr>
                    {if $branch}
                    <tr>
                        <td class="mleft" align="right">{fc_lang('程序版本')}：</td>
                        <td>&nbsp;<a href="{SITE_URL}" target="_blank">{$branch.V_NAME}</a>&nbsp;v{$branch.V_VERSION}&nbsp; <span id="finecms_version_branch"></span></td>
                    </tr>
                    <script>
                        $.getScript("http://www.dayrui.com/index.php?c=sys&m=branch&fc={DR_LICENSE_ID}&domain={SITE_URL}&admin={SELF}&branch={$branch.V_ID}&version={$branch.V_VERSION_ID}");
                    </script>
                    {/if}
                    <tr>
                        <td class="mleft" align="right">{fc_lang('服务器环境')}：</td>
                        <td>&nbsp;{$server} 、PHP{PHP_VERSION} 、MySql{$sqlversion}</td>
                    </tr>
                    <tr>
                        <td class="mleft" align="right">{fc_lang('允许上传最大值')}：</td>
                        <td>&nbsp;{php echo @ini_get("upload_max_filesize");}
                            <a href="http://help.dayrui.com/index.php?c=show&id=2061" style="color:#0000ff" target="_blank">{fc_lang('[设置方法]')}</a>
                        </td>
                    </tr>
                    <tr>
                        <td class="mleft" align="right">{fc_lang('POST提交最大值')}：</td>
                        <td>&nbsp;{php echo @ini_get("post_max_size");}
                            <a href="http://help.dayrui.com/index.php?c=show&id=2061" style="color:#0000ff" target="_blank">{fc_lang('[设置方法]')}</a>
                        </td>
                    </tr>
                    <tr>
                        <td class="mleft" align="right">{fc_lang('服务器端IP地址')}：</td>
                        <td>&nbsp;{$sip}
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>

    {if SYS_NEWS}
    <div style="float:right;width:50%">
        <div class="box">
            <div class="box-title">
                <h3><i class="icon-cloud"></i>{fc_lang('官方新闻')}</h3>
                <div class="clear"></div>
            </div>
            <div class="content" id="finecms_news"  style="padding-left:3px;padding-right:3px">
                <div style="padding:20px;">
                    <img src="{THEME_PATH}admin/images/loading-yun.gif" />
                    正在努力访问云端服务器 ...
                </div>
            </div>
        </div>
    </div>
    {/if}


</div>
</body>
</html>